package com.qumitech.visualnovel.datasource.console;

import com.qumitech.visualnovel.controller.vo.basic.RegisterChannelBasicStatisticsDataVO;
import com.qumitech.visualnovel.controller.vo.basic.StartChannelBasicStatisticsDataVO;
import com.qumitech.visualnovel.model.dao.console.BasicStatisticsData;
import com.qumitech.visualnovel.model.dao.console.RegisterChannelBasicData;
import com.qumitech.visualnovel.model.dao.console.StartChannelBasicData;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RegisterChannelBasicDataMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(RegisterChannelBasicData record);

    int insertSelective(RegisterChannelBasicData record);

    RegisterChannelBasicData selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(RegisterChannelBasicData record);

    int updateByPrimaryKey(RegisterChannelBasicData record);

    List<RegisterChannelBasicStatisticsDataVO> listBasicStatisticsData(@Param("appChannel") String appChannel,
                                                                       @Param("startTime") String startTime,
                                                                       @Param("endTime") String endTime,
                                                                       @Param("offset") int offset,
                                                                       @Param("pageSize") int pageSize);

    Integer getCount(@Param("appChannel") String appChannel,
                     @Param("startTime") String startTime,
                     @Param("endTime") String endTime,
                     @Param("offset") int offset,
                     @Param("pageSize") int pageSize);
}